<!DOCTYPE html>
<html>
<!--
  @author 胡昊
  @email 1120023921@qq.com
  @Description: 上市公司数和上市公司总值占国内生产总值比重
-->
<head lang="zh-CN">
    <title>上市公司数和上市公司总值占国内生产总值比重</title>

    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <meta charset="utf-8">

    <!-- 引入Jquery -->
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>

    <!-- 引入Bootstrap -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

    <!-- 引入BootStrap-table -->
    <link rel="stylesheet" href="../assets/libs/bootstrap-table-master/dist/bootstrap-table.min.css">
    <script src="../assets/libs/bootstrap-table-master/dist/bootstrap-table.min.js"></script>

    <!-- 引入Bootstrap-paginator -->
    <script src="../assets/libs/bootstrap-paginator-master/build/bootstrap-paginator.min.js"></script>

    <!-- 引入Echarts -->
    <script src="../assets/libs/echarts/echarts.min.js"></script>
    <style>
        .th-inner{
            text-align: center;
        }
    </style>
</head>

<body>
<div class="container">
    <div>
        <ul class="nav nav-tabs">
            <li role="presentation" id="tableTag"><a href="javascript:;" onclick="showTable()">&nbsp;<span class="glyphicon glyphicon-th-large"></span>&nbsp;</a></li>
            <li role="presentation" id="imageTag"><a href="javascript:;" onclick="showImage()">&nbsp;<span class="glyphicon glyphicon-tasks"></span>&nbsp;</a></li>
        </ul>
    </div>

    <div id="tableView">
        <div class="page-header" style="text-align: center;">
            <h3>上市公司数和上市公司总值占国内生产总值比重</h3>
            <br>
            <h4 style="margin-top: -20px;">Listed Domestic Companies and Market Capitalization of Listed Companies as Percentage of GDP</h4>
        </div>
        <table class="table table-hover table-striped" style="text-align: center">
            <tr>
                <td style="text-align: center;">国家</td>
                <td>年份</td>
                <td>上市公司数(单位：个)</td>
                <td>占国内生产总值比重(单位：%)</td>
            </tr>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">阿尔巴尼亚</td>
                <td>2005</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td>2010</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td>2015</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">爱沙尼亚</td>
                <td>2005</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td>2010</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td>2015</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">保加利亚</td>
                <td>2005</td>
                <td>331</td>
                <td>17.05344225</td>
            <tr>
                <td>2010</td>
                <td>390</td>
                <td>14.77069057</td>
            <tr>
                <td>2015</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">波兰</td>
                <td>2005</td>
                <td>234</td>
                <td>30.88875777</td>
            <tr>
                <td>2010</td>
                <td>570</td>
                <td>39.79320034</td>
            <tr>
                <td>2015</td>
                <td>570</td>
                <td>29.01735445</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">黑山</td>
                <td>2005</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td>2010</td>
                <td>361</td>
                <td>77.85939765</td>
            <tr>
                <td>2015</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">捷克</td>
                <td>2005</td>
                <td>23</td>
                <td>25.65361762</td>
            <tr>
                <td>2010</td>
                <td>16</td>
                <td>-</td>
            <tr>
                <td>2015</td>
                <td>13</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">克罗地亚</td>
                <td>2005</td>
                <td>177</td>
                <td>28.4440906</td>
            <tr>
                <td>2010</td>
                <td>240</td>
                <td>42.88850904</td>
            <tr>
                <td>2015</td>
                <td>186</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">拉脱维亚</td>
                <td>2005</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td>2010</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td>2015</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">立陶宛</td>
                <td>2005</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td>2010</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td>2015</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">罗马尼亚</td>
                <td>2005</td>
                <td>59</td>
                <td>15.90594488</td>
            <tr>
                <td>2010</td>
                <td>73</td>
                <td>8.453054915</td>
            <tr>
                <td>2015</td>
                <td>82</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">马其顿</td>
                <td>2005</td>
                <td>57</td>
                <td>10.32145375</td>
            <tr>
                <td>2010</td>
                <td>34</td>
                <td>6.911894583</td>
            <tr>
                <td>2015</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">塞尔维亚</td>
                <td>2005</td>
                <td>751</td>
                <td>26.65171382</td>
            <tr>
                <td>2010</td>
                <td>828</td>
                <td>10.5380697</td>
            <tr>
                <td>2015</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">斯洛伐克</td>
                <td>2005</td>
                <td>7</td>
                <td>148.8271893</td>
            <tr>
                <td>2010</td>
                <td>90</td>
                <td>4.668552215</td>
            <tr>
                <td>2015</td>
                <td>-</td>
                <td>-</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">斯洛文尼亚</td>
                <td>2005</td>
                <td>116</td>
                <td>21.73187921</td>
            <tr>
                <td>2010</td>
                <td>72</td>
                <td>19.63567722</td>
            <tr>
                <td>2015</td>
                <td>46</td>
                <td>14.11793273</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">匈牙利</td>
                <td>2005</td>
                <td>44</td>
                <td>28.94819788</td>
            <tr>
                <td>2010</td>
                <td>48</td>
                <td>21.29880133</td>
            <tr>
                <td>2015</td>
                <td>45</td>
                <td>14.65520708</td>
            <tr>
                <td rowspan="3" style="font-size:1.5em;text-align: center;display: table-cell;vertical-align: inherit;">波黑</td>
                <td>2005</td>
                <td>751</td>
                <td>14.53336214</td>
            <tr>
                <td>2010</td>
                <td>821</td>
                <td>15.24653078</td>
            <tr>
                <td>2015</td>
                <td>-</td>
                <td>-</td>
            </tr>
        </table>
    </div>

    <div id="imageView">
        <div class="page-header" style="text-align: center;">
            <h3>上市公司数和上市公司总值占国内生产总值比重</h3>
            <br>
            <h4 style="margin-top: -20px;">Listed Domestic Companies and Market Capitalization of Listed Companies as Percentage of GDP</h4>
        </div>

        <div class="panel" style="margin-top: 1.5em;">
            <!--<div style="text-align: right;">单位:&nbsp;%</div>-->
            <div id="main" style="width: 100%;height:400px;"></div>
        </div>
    </div>

    <div style="color: #959595; margin-top: 1.5em;">*此数据仅展现最近五年，若需全部数据请点击&nbsp;<a href="#" class="btn btn-info btn-xs">
        <span class="glyphicon glyphicon-save"></span> 下载
    </a></div>

    <div style="text-align: right;"><div id="page"></div></div>
</div>
</body>
<script>
    $(function() {
        $('#all').hide()
        $('#imageView').hide();
        $('#imageView2').hide();
        $('#tableTag').attr('class', 'active');
    })

    function showTable() {
        $('#all').hide()
        $('#tableView').show();
        $('#tableView2').show();
        $('#imageView').hide();
        $('#imageView2').hide()
        $('#tableTag').attr('class', 'active');
        $('#imageTag').removeClass('active');
        $('#first').show()
        $('#second').show()
    }

    function showImage() {
        $('#all').show()
        $('#imageView').show();
        $('#tableView').hide();
        $('#tableView2').hide();
        $('#imageView2').show();
        $('#imageTag').attr('class', 'active');
        $('#tableTag').removeClass('active');
        $('#first').hide()
        $('#second').hide()
    }


    var all = {
        "data": [
            //05 交易额
            [22.82407356,65.90589844,42.59748019,34.9243948,43.54912468,62.31477741,39.29553538,43.22458308,53.91963628,32.9085321,34.80760066,27.14087111,72.28140577,59.57993745,62.7933141,31.62496407],
            //5 周转
            [47.47122764,71.01071717,57.27596225,35.86619813,61.07601458,59.96110464,45.4323053,57.72366649,61.09648822,43.01911124,51.03340282,47.13920156,76.88456505,60.21754155,65.06715733,71.61980936],
            //10 交易额
            [32.44001683,75.06833251,53.7377538,40.032317,37.04440512,66.17670604,37.73744278,53.70651928,65.34215138,32.30179903,39.78975339,32.93254567,76.55070481,64.28815747,82.30069502,29.71716954],
            //10 周转
            [53.02454351,68.71291649,56.46038126,42.06012207,62.73592121,63.0778488,38.16018769,55.18220903,67.21963067,38.44277312,58.09131572,47.92145644,78.00736343,62.85321799,76.96059711,51.3100156],
            //13
            [27.10498449,79.7609686,66.4649835,27.2047400,43.30984533,84.48578412,49.37837524,58.75985019,77.29156191,41.09364853,48.52530884,47.69005981,93.7951193,77.83577907,0,0],
            //13
            [44.26455138,75.67376036,65.01630882,46.57008788,61.04445642,78.05579381,46.63883305,60.18410268,49.46212709,41.61870892,64.80456921,57.43851751,91.36873197,68.46733016,0,0]
        ],
        "countrys": ["阿尔巴尼亚", "爱沙尼亚", "保加利亚", "波兰", "黑山", "捷克", "克罗地亚", "拉脱维亚", "立陶宛", "罗马尼亚", "马其顿", "塞尔维亚", "斯洛伐克", "斯洛文尼亚", "匈牙利", "波黑"],
        "years": ["2005年", "2010年", "2015年"]
    };

    var option = {
        timeline: {
            axisType: 'category',
            autoPlay: true,
            playInterval: 5000,
            data: all.years
        },
        options: [{
            tooltip: {
                trigger: 'axis'
            },
            title:{
                subtext:'数据来源'
            },
            calculable: true,
            grid: {
                y: 100,
                y2: 100
            },
            legend: {
                data: ['货物和服务出口占国内生产总值比重', '货物和服务进口占国内生产总值比重']
            },
            xAxis: [{
                type: 'category',
                axisLabel: {
                    interval: 0
                },
                data: all.countrys
            }],
            yAxis: [{
                type: 'value',
                name: '货物和服务出口占国内生产总值比重%'
            },{
                type: 'value',
                name: '货物和服务进口占国内生产总值比重%',
                axisLine: {
                    lineStyle: {
                        color: '#d14a61'
                    }
                },
            }],
            //05
            series: [{
                name: '货物和服务出口占国内生产总值比重',
                type: 'bar',
                yAxisIndex: 0,
                data: all.data[0]
            }, {
                name: '货物和服务进口占国内生产总值比重',
                type: 'bar',
                yAxisIndex: 1,
                data: all.data[1]
            }]
        },
            //10
            {
                series: [{
                    data: all.data[2]
                }, {
                    data: all.data[3]
                }]
            },
            //13
            {
                series: [{
                    data: all.data[4]
                }, {
                    data: all.data[5]
                }]
            },
            //14
            {
                series: [{
                    data: all.data[6]
                }, {
                    data: all.data[7]
                }]
            },
            //15
            {
                series: [{
                    data: all.data[8]
                }, {
                    data: all.data[9]
                }]
            }
        ]
    };
    var myChart = echarts.init(document.getElementById('main'));
    // 使用刚指定的配置项和数据显示图表。
    myChart.setOption(option);
</script>

</html>